package gs.wicket.app.account;

import java.io.Serializable;

public class Korisnik implements Serializable {

	private String username;
	private String password;
	private String ime;
	private String ulica;
	private String grad;
	private String postanskiBroj;
	private String email;

	public Korisnik(String u, String password, String i, String ul, String g,String pb,String mail) {

		this.username = u;
		this.password = password;
		this.ime = i;
		this.ulica=ul;
		this.grad=g;
		this.postanskiBroj=pb;
		this.email=mail;
		
		
	}
	
	

	public boolean authenticate(String u, String password) {
		return this.username.equals(u) && this.password.equals(password);
	}



	public String getUsername() {
		return username;
	}



	public void setUsername(String username) {
		this.username = username;
	}



	public String getPassword() {
		return password;
	}



	public void setPassword(String password) {
		this.password = password;
	}



	public String getIme() {
		return ime;
	}



	public void setIme(String ime) {
		this.ime = ime;
	}


	public String getUlica() {
		return ulica;
	}



	public void setUlica(String ulica) {
		this.ulica = ulica;
	}



	public String getGrad() {
		return grad;
	}



	public void setGrad(String grad) {
		this.grad = grad;
	}



	public String getPostanskiBroj() {
		return postanskiBroj;
	}



	public void setPostanskiBroj(String postanskiBroj) {
		this.postanskiBroj = postanskiBroj;
	}



	public String getEmail() {
		return email;
	}



	public void setEmail(String email) {
		this.email = email;
	}
	
}

	